﻿using System.Threading.Tasks;
using ZlenStack.EventBus.Events;

namespace ZlenStack.EventBus.Abstractions
{
    /// <summary>
    /// 集成事件
    /// </summary>
    public interface IIntegrationEventHandler { }

    /// <summary>
    /// 集成事件
    /// </summary>
    public interface IIntegrationEventHandler<in TIntegrationEvent> : IIntegrationEventHandler where TIntegrationEvent : IntegrationEvent
    {
        Task HandleAsync(TIntegrationEvent @event);
    }
}
